/* 消息中心页面样式 */
.message-container {
  padding: 16px;
  padding-bottom: 100px; /* 为固定的TabBar留出空间 */
  background: #f5f5f5;
  min-height: 100vh;
}

/* 顶部标题栏 */
.message-header {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.message-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #333;
}

.header-actions {
  display: flex;
  gap: 8px;
}

.action-btn {
  border-radius: 16px;
  font-size: 12px;
  padding: 6px 12px;
  height: 32px;
}

/* 标签页 */
.tabs-section {
  background: white;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tabs-section .adm-tabs-header {
  border-bottom: none;
}

.tabs-section .adm-tabs-tab {
  border-radius: 20px;
  margin: 0 4px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
}

.tabs-section .adm-tabs-tab-active {
  background: #1890ff;
  color: white;
}

.tab-title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tab-badge {
  --right: -8px;
  --top: -8px;
  --border-width: 2px;
}

/* 消息列表 */
.messages-section {
  background: white;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.message-list {
  --border-inner: none;
  --border-bottom: none;
}

.message-item {
  padding: 16px 20px;
  border-bottom: 1px solid #f5f5f5;
  transition: all 0.3s ease;
  cursor: pointer;
}

.message-item:hover {
  background: #f8f9fa;
}

.message-item.unread {
  background: #f0f8ff;
  border-left: 4px solid #1890ff;
}

.message-item.unread:hover {
  background: #e6f7ff;
}

.message-content {
  display: flex;
  gap: 16px;
}

.message-avatar {
  position: relative;
  flex-shrink: 0;
}

.message-icon {
  font-size: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
}

.message-icon.system {
  color: #1890ff;
  background: #e6f7ff;
}

.message-icon.order {
  color: #52c41a;
  background: #f6ffed;
}

.message-icon.reward {
  color: #faad14;
  background: #fffbe6;
}

.unread-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  background: #ff4d4f;
  border-radius: 50%;
  border: 2px solid white;
}

.message-info {
  flex: 1;
  min-width: 0;
}

.message-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.message-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  flex: 1;
  margin-right: 12px;
}

.message-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.message-time {
  font-size: 12px;
  color: #999;
}

.message-content-text {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.message-actions {
  display: flex;
  gap: 8px;
}

.message-actions .action-btn {
  border-radius: 12px;
  font-size: 11px;
  padding: 4px 8px;
  height: 28px;
}

.delete-btn {
  color: #ff4d4f;
  border-color: #ff4d4f;
}

.delete-btn:hover {
  background: #ff4d4f;
  color: white;
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
}

.empty-state p {
  margin: 8px 0;
  font-size: 16px;
}

.empty-tip {
  font-size: 14px;
  color: #ccc;
}

/* 底部统计 */
.message-stats {
  background: white;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  justify-content: space-around;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stat-item {
  text-align: center;
}

.stat-label {
  display: block;
  font-size: 12px;
  color: #999;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 20px;
  font-weight: 700;
  color: #1890ff;
}

.stat-value.unread {
  color: #ff4d4f;
}

.stat-value.important {
  color: #faad14;
}

/* 响应式设计 */
@media (max-width: 375px) {
  .message-container {
    padding: 12px;
  }
  
  .message-header {
    padding: 16px;
  }
  
  .message-item {
    padding: 12px 16px;
  }
  
  .message-content {
    gap: 12px;
  }
  
  .message-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  
  .header-actions {
    flex-direction: column;
    gap: 4px;
  }
}

/* 动画效果 */
.message-item {
  animation: slideInRight 0.4s ease forwards;
  opacity: 0;
  transform: translateX(20px);
}

.message-item:nth-child(1) { animation-delay: 0.1s; }
.message-item:nth-child(2) { animation-delay: 0.2s; }
.message-item:nth-child(3) { animation-delay: 0.3s; }
.message-item:nth-child(4) { animation-delay: 0.4s; }
.message-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 未读消息闪烁效果 */
.message-item.unread .unread-dot {
  animation: blink 2s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0.3; }
} 